package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.model.AirConditioner;
import com.kust.smarthome.web.model.DeviceState;
import com.kust.smarthome.web.vo.DeviceVo;

import java.util.List;

public interface IAirConditionerService extends IService<AirConditioner> {

    int insert(AirConditioner airConditioner);

    List<AirConditioner> getByUserId(Integer userId);

    List<AirConditioner> add(Integer userId, DeviceVo deviceVo);

    List<DeviceState> findOperationList(Integer deviceId, Integer typeId);

    boolean setupdate(Integer id);
}
